package wechat.app;

import org.eclipse.xtext.xbase.lib.ObjectExtensions;
import org.eclipse.xtext.xbase.lib.Procedures.Procedure1;
import wechat.app.WXServiceAppFactoryDemo;
import wechat.base.snd.WCServiceApp;

@SuppressWarnings("all")
public class OpenID {
  private static String openid = null;
  
  public static String getOpenId(final String code) {
    String _xblockexpression = null;
    {
      WCServiceApp _serviceApp = WXServiceAppFactoryDemo.getServiceApp();
      final Procedure1<WCServiceApp> _function = new Procedure1<WCServiceApp>() {
        public void apply(final WCServiceApp it) {
          String _openId = it.getOpenId(code);
          OpenID.openid = _openId;
        }
      };
      ObjectExtensions.<WCServiceApp>operator_doubleArrow(_serviceApp, _function);
      _xblockexpression = OpenID.openid;
    }
    return _xblockexpression;
  }
}
